﻿@model IEnumerable<OurWedding1.Models.Expense>
@using OurWedding1

<table style="width: 100%">
    <thead>
        <tr>
            <th>
                @Html.DisplayNameFor(m => m.Name)
            </th>
            <th class="colLevel1">
                @Html.DisplayNameFor(m => m.ExpenseCategory)
            </th>
            <th class="tdRight colLevel2">
                @Html.DisplayNameFor(m => m.TotalPlanAmount)
            </th>
            <th class="tdRight">
                @Html.DisplayNameFor(m => m.TotalAmount)
            </th>
            <th class="tdRight colLevel3">
                @Html.DisplayNameFor(m => m.Paided)
            </th>
            <th class="tdRight">
                @Html.DisplayNameFor(m => m.Progress)
            </th>
        </tr>
    </thead>

    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.ActionLink(item.Name, "Details", new { id = item.ExpenseId })
                </td>
                <td class="colLevel1">
                    @(item.ExpenseCategory == null ? @Resources.None : item.ExpenseCategory.Name)
                </td>
                <td class="tdRight colLevel2">
                    @Html.DisplayFor(modelitem => item.TotalPlanAmount)
                </td>
                <td class="tdRight">
                    @Html.DisplayFor(modelitem => item.TotalAmount)
                </td>
                <td class="tdRight colLevel3">
                    @Html.DisplayFor(modelitem => item.Paided)
                </td>
                <td class="tdRight">
                    @Html.DisplayFor(modelitem => item.Progress)
                </td>
            </tr>
        }
    </tbody>

</table>

